package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 优惠券使用状态
 * @author panbo
 * @since 2024/8/1
 */
@Getter
@AllArgsConstructor
@Dict("优惠券使用状态")
public enum CouponStatusEnum implements DictEnum<Integer> {
    UNRECEIVED(0, "未领取", "green"),
    UNUSED(1, "未使用", "green"),
    USED(2, "已使用", "blue"),
    OUTDATED(3, "已过期", "warning");

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String label;
    private final String color;
}
